/*
 * @Author: Logan.Li
 * @Gitee: https://gitee.com/attacker
 * @email: admin@attacker.club
 * @Date: 2025-02-23 00:43:50
 * @LastEditTime: 2025-02-23 03:01:30
 * @Description: 
 */
/**
 * @file user.js
 * @description 用户管理相关的路由配置
 */

import Layout from "../../views/layout.vue";

// 用户管理相关的动态路由配置
export const userRoutes = [
  {
    path: "/user",
    component: Layout,
    name: "权限管理",
    icon: "Lock",
    alwaysShow: true,
    meta: {
      title: "账户管理",
      icon: "Lock",
      permissions: ["admin", "user"],
      hidden: false
    },
    children: [
      {
        path: "/user/users",
        component: () => import("../../views/users/users/index.vue"),
        name: "用户列表",
        meta: {
          title: "用户列表",
          permissions: ["admin", "user-users"],
          hidden: false
        }
      },
      {
        path: "/user/roles",
        component: () => import("../../views/users/roles/index.vue"),
        name: "角色管理",
        meta: {
          title: "角色管理",
          permissions: ["admin", "user-roles"],
          hidden: false
        }
      },
      {
        path: "/user/permissions",
        component: () => import("../../views/users/permissions/index.vue"),
        name: "菜单管理",
        meta: {
          title: "菜单管理",
          permissions: ["admin", "user-permissions"],
          hidden: false
        }
      }
    ]
  }
];